<%@ Page Language="VB" MasterPageFile="~/AdminMasterPage.master" AutoEventWireup="false" 
CodeFile="Module_Access.aspx.vb" Inherits="Admin_Module_Access" title="CIMS" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <table border="0" cellpadding="0" cellspacing="0" width="580">
        <tr><td>
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td style="font-size: 10pt; width: 100px; font-family: Verdana; height: 28px;" align="left">
                        </td>
                    <td style="width: 499px; height: 28px;" align="left">
                        </td>                    
                    <td style="font-size: 10pt; width: 100px; font-family: Verdana; height: 28px;" align="left">
                        <asp:Button ID="Back_btn" runat="server" Text="Back" BackColor="Gainsboro" Width="64px" /></td>
                </tr>
                <tr>
                    <td style="font-size: 10pt; width: 100px; font-family: Verdana; height: 27px;" align="left">
                        &nbsp;Department:</td>
                    <td style="width: 499px; height: 27px;" align="left">
                        <asp:DropDownList ID="department_cmb" runat="server" Width="304px" AutoPostBack="True">
                        </asp:DropDownList></td>                    
                    <td style="font-size: 10pt; width: 100px; font-family: Verdana; height: 27px;" align="left">
                        </td>
                </tr>
                <tr>
                    <td style="font-size: 10pt; width: 100px; font-family: Verdana; height: 27px;" align="left">
                        &nbsp;Role:</td>
                    <td style="width: 499px; height: 27px;" align="left">
                        <asp:DropDownList ID="role_cmb" runat="server" Width="304px" AutoPostBack="True">
                        </asp:DropDownList></td>                    
                    <td style="font-size: 10pt; width: 100px; font-family: Verdana; height: 27px;" align="left">
                        </td>
                </tr>
            </table>
        </td></tr>
    </table>

    <br />
    
    <table cellpadding="0" cellspacing="0">
        <tr><td style="width: 580px;">
            <asp:DataGrid ID="DataGrid" runat="server" AutoGenerateColumns="False" BackColor="White"
                BorderColor="White" BorderStyle="Solid" BorderWidth="1px" CellPadding="1" Font-Names="Verdana" Width="580px" Font-Size="Small" TabIndex="12" AllowSorting="True">
                <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
                <SelectedItemStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
                <PagerStyle BackColor="White" ForeColor="#330099" HorizontalAlign="Left" Mode="NumericPages" PageButtonCount="9" Position="Top" />
                <AlternatingItemStyle BackColor="#D7DADF" />
                <ItemStyle BackColor="#F2F3F5" ForeColor="Black" />
                <HeaderStyle BackColor="#105BA4" Font-Bold="True" ForeColor="White" />
                <Columns>
                    <asp:BoundColumn DataField="module_access_cd" Visible="False"></asp:BoundColumn>
                    <asp:BoundColumn HeaderText="Module Name" DataField="module_access_desc" ReadOnly="True">
                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Left" />
                        <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" />
                    </asp:BoundColumn>
                    <asp:TemplateColumn HeaderText="All">
                        <ItemTemplate>
                            <asp:CheckBox ID="All_chkbox" runat="server" OnCheckedChanged="All_chkbox_CheckedChanged" Text=" " Enabled="False" />
                        </ItemTemplate>
                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" />
                        <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" Width="30px" />
                        <EditItemTemplate>
                            <asp:CheckBox ID="All_chkbox2" runat="server" OnCheckedChanged="All_chkbox_CheckedChanged" Text=" " AutoPostBack="True" />
                        </EditItemTemplate>
                    </asp:TemplateColumn>                    
                    <asp:TemplateColumn HeaderText="View">
                        <ItemTemplate>
                            <asp:CheckBox ID="View_chkbox" runat="server" Checked='<%# DataBinder.Eval(Container.DataItem, "view_tag") %>' Enabled="False" />
                        </ItemTemplate>
                <EditItemTemplate>
                    <asp:CheckBox ID="View_CheckBox2" runat="server" Checked='<%# DataBinder.Eval(Container.DataItem, "view_tag") %>'/>
                </EditItemTemplate>
                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" />
                        <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" Width="40px" />
                    </asp:TemplateColumn>        
                    <asp:TemplateColumn HeaderText="Add">
                        <ItemTemplate>
                            <asp:CheckBox ID="Add_chkbox" runat="server" Checked='<%# DataBinder.Eval(Container.DataItem, "add_tag") %>' Enabled="False" />
                        </ItemTemplate>
                <EditItemTemplate>
                    <asp:CheckBox ID="Add_CheckBox2" runat="server" Checked='<%# DataBinder.Eval(Container.DataItem, "add_tag") %>'/>
                </EditItemTemplate>
                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" />
                        <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" Width="34px" />
                    </asp:TemplateColumn>
                    <asp:TemplateColumn HeaderText="Edit">
                        <ItemTemplate>
                            <asp:CheckBox ID="Edit_chkbox" runat="server" Checked='<%# DataBinder.Eval(Container.DataItem, "edit_tag") %>' Enabled="False" />
                        </ItemTemplate>
                <EditItemTemplate>
                    <asp:CheckBox ID="Edit_CheckBox2" runat="server" Checked='<%# DataBinder.Eval(Container.DataItem, "edit_tag") %>'/>
                </EditItemTemplate>
                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" />
                        <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" Width="36px" />
                    </asp:TemplateColumn>
                    <asp:TemplateColumn HeaderText="Delete">
                        <ItemTemplate>
                            <asp:CheckBox ID="Delete_chkbox" runat="server" Checked='<%# DataBinder.Eval(Container.DataItem, "delete_tag") %>' Enabled="False" />
                        </ItemTemplate>
                <EditItemTemplate>
                    <asp:CheckBox ID="Delete_CheckBox2" runat="server" Checked='<%# DataBinder.Eval(Container.DataItem, "delete_tag") %>'/>
                </EditItemTemplate>
                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" />
                        <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" Width="54px" />
                    </asp:TemplateColumn>
                    <asp:TemplateColumn HeaderText="Print">
                        <ItemTemplate>
                            <asp:CheckBox ID="Print_chkbox" runat="server" Checked='<%# DataBinder.Eval(Container.DataItem, "print_tag") %>' Enabled="False" />
                        </ItemTemplate>
                <EditItemTemplate>
                    <asp:CheckBox ID="Print_CheckBox2" runat="server" Checked='<%# DataBinder.Eval(Container.DataItem, "print_tag") %>'/>
                </EditItemTemplate>
                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" />
                        <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" Width="40px" />
                    </asp:TemplateColumn>
                    <asp:EditCommandColumn CancelText="Cancel" EditText="Edit" UpdateText="Update">
                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" />
                        <HeaderStyle Width="100px" />
                    </asp:EditCommandColumn>
                    <asp:BoundColumn DataField="role_cd" Visible="False"></asp:BoundColumn>                    
                </Columns>
            </asp:DataGrid></td></tr>
    </table>
    <br />
    <asp:DataGrid ID="Report_dg" runat="server" AutoGenerateColumns="False" BackColor="White"
        BorderColor="White" BorderStyle="Solid" BorderWidth="1px" CellPadding="1" Font-Names="Verdana" Width="580px" Font-Size="Small" TabIndex="12" AllowSorting="True">
        <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
        <SelectedItemStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
        <PagerStyle BackColor="White" ForeColor="#330099" HorizontalAlign="Left" Mode="NumericPages" PageButtonCount="9" Position="Top" />
        <AlternatingItemStyle BackColor="#D7DADF" />
        <ItemStyle BackColor="#F2F3F5" ForeColor="Black" />
        <HeaderStyle BackColor="#105BA4" Font-Bold="True" ForeColor="White" />
        <Columns>
            <asp:BoundColumn DataField="report_cd" Visible="False"></asp:BoundColumn>
            <asp:BoundColumn HeaderText="Report Name" DataField="report_name" ReadOnly="True">
                <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Left" />
                <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" />
            </asp:BoundColumn>
            <asp:TemplateColumn>
                <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" />
                <ItemTemplate>
                    <asp:CheckBox ID="Access_chkbox" runat="server" OnCheckedChanged="All_chkbox_CheckedChanged" Text=" " Checked='<%# Bind("access_tag") %>' />
                </ItemTemplate>
                <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" Width="30px" />
                <EditItemTemplate>
                    &nbsp;
                </EditItemTemplate>
            </asp:TemplateColumn>
        </Columns>
    </asp:DataGrid><br />
    <asp:Button ID="UpdateRpt_btn" runat="server" BackColor="Gainsboro" Text="Update Report Access" Width="160px" /><br />
    <asp:Label ID="Label1" runat="server" Visible="False"></asp:Label><br />
    <asp:ScriptManager runat="server" ID="ScriptManager1">
    </asp:ScriptManager>      
</asp:Content>
